const crypto=require('crypto');

let hash=crypto.createHash('md5');
hash.updata('abc');
hash.updata('def');

console.log(hash.digest('hex'));